package com.qidian.mes.dv.controller;

import com.qidian.mes.dv.service.DvMachineryTypeService;
import com.qidian.mes.util.pojo.MESResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@CrossOrigin
@RequestMapping("/machineryType")
public class DvMachineryTypeController {
    @Autowired
    DvMachineryTypeService dvMachineryTypeService;

    @GetMapping("/list")
    //查询数据返回数
    public MESResult listTree() {
        return dvMachineryTypeService.listTree();
    }
}
